package com.v5.java.rpc.server;

import java.io.IOException;

import org.apache.hadoop.ipc.ProtocolSignature;

public class MyBusinessImpl implements MyBusiness {

	@Override
	public ProtocolSignature getProtocolSignature(String arg0, long arg1, int arg2) throws IOException {
		// 返回我们的签名
		return new ProtocolSignature(versionID, null);
	}

	@Override
	public long getProtocolVersion(String arg0, long arg1) throws IOException {
		// 返回你的ID
		return versionID;
	}

	@Override
	public String sayHello(String name) {
		System.out.println("************ 服务器端被调用了  **************");
		// 自己的方法
		return "Hello " + name;
	}

}
